package oop5;

/**
 * @author oldliu
 * @since 1.0
 */
public class Cat extends Pet {
    public Cat(String name, int h, int l, String s) {
        super(name, h, l, s);
    }

    public final void catchMouse(String m) {
        System.out.println(super.getName() + "抓住了老鼠" + m);
    }

    @Override//重写标记
    public void print() {
        //super.print();
        System.out.println("这是一只猫");
        System.out.println("名字叫" + super.getName() + ",健康值：" + super.getHealth() + ",可爱程度" + super.getLove() + "，性别是" + super.getSex());
    }
}
